<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/pages/common/header.jsp"%>
<script language="javascript">
</script>
</head>
<body>
	<div class="contentBody contentBodyborder">
		<div class="tab-pane" id="tabPane">
			<div id="message"><%=message%></div>
			<div class="tab-page">
				<h1 class="tab">公告管理</h1>
				<div class="contentborder">
					<jdf:form bean="request" scope="request">
						<form action="<%=dynamicDomain%>/notice/page" method="post" name="Resource" id="Resource">
							<table class="inputTable">
								<tr>
									<td nowrap class="label cancelBorderLeft">
									   <label for="search_LIKES_title">标题：</label>
									</td>
									<td class="content">
									   <input type="text" name="search_LIKES_title">
									</td>
									<td nowrap class="label">
									    <label for="search_EQD_effectiveDate">有效期：</label>
									</td>
									<td class="content">
									    <input type="text" id="effectiveDate" name="search_EQD_effectiveDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'expireDate\')}',readOnly:true})">
									               ～<input type="text" id="expireDate" name="search_EQD_expireDate" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'effectiveDate\')}',readOnly:true})">
									</td>
								</tr>
								<tr>
									<td class="bottomLabel" nowrap colspan="4">
										<div class="right">
											<button type="reset">重置</button>
											<button type="submit">查询</button>
										</div>
									</td>
								</tr>
							</table>
						</form>
					</jdf:form>
				</div>
				<div class="contentborder listArea">
					<div class="toolBar">
						<button type="button" onclick="window.location.href='<%=dynamicDomain%>/notice/create'">新增</button>
					</div>
					<div id="tableDiv">
						<jdf:table items="items" var="currentRowObject" retrieveRowsCallback="limit" filterRowsCallback="limit" sortRowsCallback="limit" action="page">
							<jdf:export view="csv" fileName="notice.csv" tooltip="导出CSV" imageName="csv" />
							<jdf:export view="xls" fileName="notice.xls" tooltip="导出EXCEL" imageName="xls" />
							<jdf:row>
								<jdf:column property="title" title="标题" style="width: 30%;" />
								<jdf:column property="createdBy" title="创建人" style="width: 15%;">
								    <jdf:columnCollectionValue items="users" nameProperty="userName" value="${currentRowObject.createdBy}"/>
								</jdf:column>
								<jdf:column property="effectiveDate" title="生效日期" style="width: 20%;" cell="date" format="yyyy-MM-dd" />
								<jdf:column property="expireDate" title="失效日期" style="width: 20%;" cell="date" format="yyyy-MM-dd" />
								<jdf:column alias="操作" sortable="false" viewsAllowed="html" style="width: 15%">
									<a href="<%=dynamicDomain%>/notice/edit/${currentRowObject.id}" class="button">修改</a>
									<a href="#" onclick="toDeleteUrl('<%=dynamicDomain%>/notice/delete/${currentRowObject.id}')" class="button">删除</a>
								</jdf:column>
							</jdf:row>
						</jdf:table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
